<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<header class="navbar navbar-static-top navbar-default navbar-inverse" id="top" role="banner">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="<?php echo $header_json['title']['url'] ?>"><?=VIEW_TITLE?></a>
        </div>
        <nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
            <ul class="nav navbar-nav">
                <?php foreach ($header_json['nav'] as $k => $v) { ?>
                    <li class="<?php echo $v['act']; ?>">
                        <a href="<?php echo $v['a']; ?>"><?php echo $v['li_name']; ?></a>
                    </li>
                <?php } ?>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a href="#" style="padding: 5px;margin: 0;">
                        <img style="width: 40px;height: 40px;" src="<?php echo $header_json['user']['header_img'] ?>" alt="..."
                             class="img-circle">
                    </a>
                </li>
                <li>
                    <a href="javascript:logout()">退出</a>
                </li>
            </ul>
        </nav>
    </div>
</header>

